package com.xiangban.controller;

import com.xiangban.service.fegin.SmsServiceFeign;
import com.xiangban.model.dto.VerificationDto;
import com.xiangban.model.res.ApiResult;
import com.xiangban.service.VerificationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class VerificationController {
    @Autowired
    private VerificationService verificationService;
    @PostMapping("/getVerificationCode")
    @ApiOperation("获取验证码")
    public ApiResult<Object> verification(@RequestBody VerificationDto verificationDto) {
        return verificationService.verification(verificationDto);

    }
}
